var pageii = null;
var grid = null;
$(function() {
	grid = lyGrid({
		pagId : 'paging',
		l_column : [ {
			colkey : "planNo",
			name : "计划编号"
		},	{
			colkey : "pfinishtime",
			name : "日期",
			renderData : function(rowindex, data, rowdata, column) {
				return new Date(data).format("yyyy-MM-dd hh:mm:ss");
			}
		},  {
			colkey : "material_code",
			name : "物料编码"
		}, {
			colkey : "oname",
			name : "物料名称"
		}, {
			colkey : "cid",
			name : "客户编号"
		}, {
			colkey : "cname",
			name : "客户名称"
		}, {
			colkey : "packNum",
			name : "每包件数"
		}, {
			colkey : "now_mold_encode",
			name : "模具编码"
		}, {
			colkey : "printCount",
			name : "领用张数"
		}, {
			colkey : "returnCount",
			name : "退回张数"
		}, {
			colkey : "damageCount",
			name : "损坏张数"
		}, {
			colkey : "actualCount",
			name : "实际使用数量"
		}, {
			colkey : "labelname",
			name : "领用人"
		}, {
			colkey : "printRemark",
			name : "备注"
		} ],
		jsonUrl : rootPath + '/label_daily/label_daily_findByPage.shtml',
		dymCol : true,
		checkbox : true,
		serNumber : false
	});
	$("#search").click("click", function() {//  绑定查询按扭
		var searchParams = $("#searchForm").serializeJson();
		grid.setOptions({
			data : searchParams
		});
	});

});

